home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / System / BoingBag1 / Contributions / InstallerNG / GUI-API / example / igui_Complete.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  979b  |  57 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  */
  10.  
  11. /********************************************************************
  12.  *
  13.  *  STATIC
  14.  *
  15.  */
  16.  
  17. /********************************************************************
  18.  *
  19.  *  EXTERN
  20.  *
  21.  */
  22.  
  23. /********************************************************************
  24.  *
  25.  *  PUBLIC
  26.  *
  27.  */
  28.  
  29. /********************************************************************
  30.  *
  31.  *  CODE
  32.  *
  33.  */
  34.  
  35. void __asm igui_Complete(register __a0 APTR application, register __d0 long value)
  36. {
  37.   #ifdef DEBUG
  38.   DEBUG_MAKRO
  39.   #endif
  40.  
  41.   {
  42.     struct Application *app = application;
  43.     char *newtitle;
  44.     long args[2];
  45.  
  46.     args[0] = app -> app_GlobalEnv[GENV_APPNAME];
  47.     args[1] = value;
  48.  
  49.     if (newtitle = sav_StringF2(app -> app_Texts[COMPLETE], &args))
  50.     {
  51.        set(app->app_MainWindow, MUIA_Window_Title, newtitle);
  52.     }
  53.     else { /* OUT OF MEM */ }
  54.   }
  55. }
  56.  
  57.